#include "main.h"

#define fTIME_STEP 0.01f
#define iWIDTH  1024
#define iHEIGHT 768
#define iBITS   32
#define sTITLE  "Ranbos"

using namespace std;
using namespace jfw;

//extern Engine* pEngine;
Engine* pEngine = new Engine();

int main()
{
    if(pEngine->LoadSettings("config.conf", "="))
        pEngine->Open();
    else
        pEngine->Open(iWIDTH, iHEIGHT, iBITS, sTITLE);

    while (pEngine->App.IsOpened())
    {
        pEngine->Update(fTIME_STEP);
        pEngine->Draw();
    }

    pEngine->Close();
    delete pEngine;
    return EXIT_SUCCESS;
}
